<include file="Lwn_list:header" />

<div class="row">
    <div class="col-lg-12">
    </div>
</div>
<style>
	#header{ padding:15px 0;}
	.action{ text-decoration:underline;}
	.close{ font-size:inherit;}
	.groupWrapper{ min-height:30px;}
	.form-text{ color:#888; width:180px; padding-right:20px; text-align:right; font-weight:bold; height:50px;}
	.tag-list{ padding:0; list-style:none;}
	.tag-list li{ position:relative;}
	.form-list .btn{  margin-right:14px;}
	.tag-list .ok {top: -5px;right: 5px;height: 13px;width: 16px;position: absolute; color:#6bd2ac; background-color:white;}
	.ui-sortable-placeholder {border: 4px dotted #eee;visibility: visible !important; background-color:rgba(255,255,255,0.3);}
	.ui-sortable-placeholder * {visibility: hidden;}
	.task-widget ul{padding: 0; list-style:none}
	.list ul li:hover{ background:#f8f8f8;}
	.task-widget ul li span{ color:#666;}
	.task-widget ul li label {font-weight: normal;margin: 0;cursor: pointer;width: 100%;display: block;padding: 10px 15px 12px 10px; font-size:13px;}
	.Jh_edit{ transition:0.2s outline ease-in-out; outline:5px dotted #ddd; }
	.groupItem{ margin-bottom:20px;}
	.ico_layout{display: block;height: 38px;margin: 0 auto 3px;width: 54px;transform: scale(0.6);background-image: url('/Public/Intesys/AdminX/js/portlet_draggable/icon_layout.png');}
	.blog-post,.blog-post i{font-size:13px ;}
	.blog-post h3{ font-size:14px;}
	/* 进入布局模式的时候的图标样式     Jh_edit  min-height:60px;*/
	.ico_layout_13{background-position: -1366px -47px;}
	.ico_layout_131{background-position: -1476px -39px;}
	.ico_layout_22{background-position: -1438px 0;}
	.ico_layout_112{background-position: -1421px -39px;}
	.ico_layout_121{background-position: -1383px 0;}
	.ico_layout_4{background-position: -1493px 0;}
	.ico_layout_31{background-position: -1531px -39px;}
	.ico_layout_211{background-position: -1603px 0;}
</style>



<script type="text/javascript" src="__PUBLIC__/Intesys/AdminX/js/portlet_draggable/Jh.js"></script>
<script src="__PUBLIC__/Js/jquery-ajaxlist.js"></script>
</div>
    

  </div>
  </section>
<div class="panel states-info">
    <div class="panel-body" style="border-bottom:2px solid #eff0f4">
        <div class="media usr-info">
            <a href="javascript:void(0);" class="pull-left" style="margin-top:0" class="col-lg-6 col-sm-12">
                <img class="thumb" style="border-radius:0" src="<empty name="userInfo['img_url']">__PUBLIC__/timg.jpg<else/>{$userInfo['img_url']}</empty>" alt=""/>
            </a>
            <div class="media-body col-lg-8 col-sm-12" style="padding-left:0">
                <if condition="$memberstatu eq 1">
                    <i style="display:block;line-height:27px;color:#828282;font-size:16px;font-style:normal">{$userInfo['name']}</i>
                    <i style="display:block;line-height:27px;color:#bdbdbd;font-size:14px;font-style:normal">部门 : {$indexpos}
                    <i style="display:block;line-height:27px;color:#bdbdbd;font-size:14px;font-style:normal">共有员工{$totalstaff}人
                <else />
                    <i style="display:block;line-height:40px;color:#828282;font-size:16px;font-style:normal">{$total['memberinfo']['name']}</i>
                    <i style="display:block;line-height:40px;color:#bdbdbd;font-size:14px;font-style:normal">部门 : {$total['memberinfo']['memberpositionname']}</i>
                </if>
            </div>
        </div>
    </div>
    <div class="panel-body" style="padding-top: 13px;padding-bottom:0">
        <if condition="$memberstatu eq 1">
            <div class="row" style="padding-bottom:13px">
                <if condition="getAccessMenu($accessList, 'Intesys', 'Employee', 'add')">
                    <div class="col-sm-6" data-position="bottom" data-intro="点击这里增加员工">
                        <a class="btn btn-success center-block" href="javascript:void(0);" onClick="_openWindow('{:U('Employee/add')}',800, '新增员工信息', '提交',null,'')">
                            增加员工
                        </a>
                    </div>
                </if>
                <if condition="getAccessMenu($accessList, 'Intesys', 'Member_position', 'Member_position/index')">
                    <div class="col-sm-6 pauseClick" data-position="bottom" data-intro="点击这里创建公司的组织管理架构，<a href='{:U('Member_position/index')}' target='_blank'>现在去创建</a>">
                        <a class="btn btn-success center-block" href="{:U('Member_position/index')}">
                            组织架构
                        </a>
                    </div>
                </if>
            </div>
        <else />
            <div class="row">
                <div class="col-lg-12" style="text-align:center;color:#828282;" id="total">
                </div>
                <div id="totalpages"></div>
                <form action="{:U('Lwn_list/total')}" id="totalform" method="post">
                    <input type="hidden" name="time" value="">
                    <input type="hidden" name="show" value="1">
                </form>
                <div class="col-lg-12" style="border-top:1px solid #65cea7;padding-top:15px;padding-bottom:15px;text-align:center;cursor:pointer;color:#000" id="timecheck">
                    <span class="sp1"><span class="sp2"></span></span><!--顶部尖角-->
                    <div class="col-lg-3 col-sm-3" style="border-right:1px solid #e0e0e0;padding:0;height:33px;line-height:33px;" value="">今日</div>
                    <div class="col-lg-3 col-sm-3" style="border-right:1px solid #e0e0e0;padding:0;height:33px;line-height:33px;" value="w">本周</div>
                    <div class="col-lg-3 col-sm-3" style="border-right:1px solid #e0e0e0;padding:0;height:33px;line-height:33px;" value="m">本月</div>
                    <div class="col-lg-3 col-sm-3" style="padding:0;height:33px;line-height:33px;" value="y">本年</div>
                </div>
            </div>
        </if>
    </div>
</div>

<style>
    .onclick{color:#65cea7;}
    .sp1,.sp2
    {
        display:block;
        height:0px;
        width:0px;
        position:absolute;
        font-size:0;
        line-height:0;
    }
    .sp1
    {
        top:-3px;    /* 它的绝对值加上span的边框宽度等于div边框宽度的5倍 */
        border-top:0px;
        border-bottom:2px solid #65cea7;  /* 注意颜色的变化 */
        border-right:2px solid white;
        border-left:2px solid white;
    }
    .sp2
    {
        top:1px;  /* 是自身边框宽度的2倍 */
        left:-2px; /* 是自身边框宽度的-1倍  */
        border-top:0px;
        border-bottom:2px solid white;
        border-right:2px solid #65cea7;
        border-left:2px solid #65cea7;
    }
</style>
<script>
    $('#total').ajaxlist();
    $(document).ready(function(){
        //alert($('#timecheck').width()); 360
        var spleft=$('#timecheck').width()/8+13;
        var delta=$('#timecheck').width()/4-1;
//        alert(delta);
        $('.sp1').css('left',spleft+'px');

        $('#timecheck div:eq(0)').addClass('onclick');
        $('#timecheck div').each(function(){
            $(this).click(function(){
                var i = $(this).index();//序列 从1开始
                var left=spleft+(i-1)*delta;
                $('.sp1').css('left',left+'px');

                $('#timecheck div').removeClass('onclick');
                $(this).addClass('onclick');
                $('#totalform input:eq(0)').val($(this).attr('value'));
                $('#totalform').submit();
            });
        });
        $.post("{:U('Lwn_list/total')}",function(data){
            $('#total').html(data.tbody);
        },'json');
    });
</script>
<include file="Public:script" />
